package com.xr.miniprogram.mapper;

import com.xr.miniprogram.domain.MiniProgramOrderUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xr.miniprogram.domain.MiniProgramUserAddress;
import com.xr.miniprogram.domain.vo.MiniProgramOrderUserVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.security.core.parameters.P;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.HashMap;
import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author da
 * @since 2023-09-19
 */
@Mapper
public interface MiniProgramOrderUserMapper extends BaseMapper<MiniProgramOrderUser> {

    /**
     * 根据 服务日志id 与 服务日期 查询订单子项
     * @param serviceLogId 服务日志id
     * @param date 服务日期
     * @param workStatus 需排除的工作状态
     * @return
     */
    MiniProgramOrderUser getByServiceTime(@Param("serviceLogId") Long serviceLogId, @Param("date") String date, @Param("workStatus") Long workStatus);

    /**
     * 根据条件获取订单子项VOList
     * @param orderId
     * @return
     */
    List<MiniProgramOrderUserVO> getOrderUserVOListByParams(@Param("orderId") Long orderId, @Param("uStatusId") Long uStatusId, @Param("staffId") Long staffId);
}
